unit unSplashForm;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, LoginInterface, CnWaterImage, jpeg, StdCtrls;

type
  TSplashForm = class(TForm, ISplashForm)
    CnWaterImage1: TCnWaterImage;
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  public
    {interface : ISplashForm}
    function ShowSplashForm:boolean;
    function CloseSplashForm:boolean;
  end;


implementation

{$R *.dfm}

{ TSplashForm }

function TSplashForm.CloseSplashForm: boolean;
begin
  Close;
end;

procedure TSplashForm.FormCreate(Sender: TObject);
begin
  Top:=trunc(screen.DesktopHeight / 2)-trunc(self.Height / 2);
  Left:=trunc(screen.DesktopWidth / 2)-trunc(self.Width / 2);
end;

function TSplashForm.ShowSplashForm: boolean;
begin
  Show;
end;

end.
